import request from '@/utils/request'

// 查询平台保障服务列表
export function listSafeguard(query) {
  return request({
    url: '/super/safeguard/list',
    method: 'get',
    params: query
  })
}

// 查询平台保障服务详细
export function getSafeguard(safeguardId) {
  return request({
    url: '/super/safeguard/' + safeguardId,
    method: 'get'
  })
}

// 新增平台保障服务
export function addSafeguard(data) {
  return request({
    url: '/super/safeguard',
    method: 'post',
    data: data
  })
}

// 修改平台保障服务
export function updateSafeguard(data) {
  return request({
    url: '/super/safeguard',
    method: 'put',
    data: data
  })
}

// 删除平台保障服务
export function delSafeguard(safeguardId) {
  return request({
    url: '/super/safeguard/' + safeguardId,
    method: 'delete'
  })
}

// 导出平台保障服务
export function exportSafeguard(query) {
  return request({
    url: '/super/safeguard/export',
    method: 'get',
    params: query
  })
}
